<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/res/app/admin/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/lib/jquery.js"></script>
<title>框架菜单</title>
</head>
<style>
    html{
        height:auto;
        overflow-x:hidden;
    }
</style>
<script type="text/javascript">
    function setDefault(){
        $("ul").each(function()
        {
            if($(this).css("display")=="block") 
                $(this).parents("li").addClass("on");
        });
    }
    function SwitchMenu(obj){
        var el = document.getElementById(obj);
        var ar = document.getElementById("masterdiv").getElementsByTagName("ul"); 
        if(el.style.display != "block"){ 
            for (var i=0; i<ar.length; i++){
                ar[i].style.display = "none"; 
            }
            el.style.display = "block";
        }
        else{
            el.style.display = "none";
        }
        
        $("li[name^='li_']").removeClass("on");
        $("li[name='li_"+obj+"']").addClass("on");
    }
</script>
<body style="background:#eef2fb url(res/images/cn_sidebar.gif) repeat-y;" onload="setDefault();">
    <div class="cn_sidebar" >
        <div class="cn_menu"> 
            <ul id="masterdiv">
                <li name="li_sub0">
                    <a href="javascript:void(0);" onclick="SwitchMenu('sub0')">前台页面</a>
                    <ul id="sub2" >
                        <li><a href="/www/l-product/index" target='main'>首页</a></li>
                        <li><a href="/www/l-product/ilist" target='main'>列表页</a></li>
                        <li><a href="/www/l-product/detail" target='main'>详情页</a></li>
                        <li><a href="/www/l-product/order" target='main'>下单页</a></li>
                        <li><a href="/www/l-product/pay" target='main'>支付页</a></li>
                        <li><a href="/www/l-product/login" target='main'>登录页</a></li>
                        <li><a href="/www/l-product/register" target='main'>注册页</a></li>
                    </ul>
                </li>
                <li name="li_sub1">
                    <a href="javascript:void(0);" onclick="SwitchMenu('sub1')">订单管理</a>
                    <ul id="sub2" >
                        <li><a href="/admin/a-info/index" target='main'>订单列表</a></li>
                        <li><a href="/admin/a-table/listTable" target='main'>订单详情</a></li>
                        <li><a href="/admin/a-log/index" target='main'>财务管理</a></li>
                        <li><a href="/admin/a-cache/index" target='main'>权限配置</a></li>
                        <li><a href="/admin/a-config/index" target='main'>数据分析</a></li>
                    </ul>
                </li>
                 <li name="li_sub2">
                    <a href="javascript:void(0);" onclick="SwitchMenu('sub2')">后台管理</a>
                    <ul id="sub2" >
                        <li><a href="/admin/a-info/index" target='main'>phpinfo</a></li>
                        <li><a href="/admin/a-table/listTable" target='main'>表管理</a></li>
                        <li><a href="/admin/a-log/index" target='main'>日志管理</a></li>
                        <li><a href="/admin/a-cache/index" target='main'>缓存管理</a></li>
                        <li><a href="/admin/a-config/index" target='main'>配置管理</a></li>
                    </ul>
                </li>
                <li name="li_sub3">
                    <a href="javascript:void(0);" onclick="SwitchMenu('sub3')">脚手架</a>
                    <ul id="sub3" >
                        <li><a href="/admin/a-scaffold/index" target='main'>app管理</a></li>
                        <li><a href="/test.code.php" target='main'>测试代码</a></li>
                    </ul>
                </li>
                <li name="li_sub4">
                    <a href="javascript:void(0);" onclick="SwitchMenu('sub4')">自定义</a>
                    <ul id="sub4" >
                        <li><a href="/admin/a-hook/url" target='main'>url自定义</a></li>
                        <li><a href="/admin/a-hook/start" target='main'>全局插件</a></li>
                        <li><a href="/admin/a-hook/app" target='main'>app插件</a></li>
                    </ul>
                </li>
                 <li name="li_sub5">
                    <a href="javascript:void(0);" onclick="SwitchMenu('sub5')">脚本管理</a>
                    <ul id="sub5" >
                        <li><a href="/admin/a-script/index" target='main'>脚本列表</a></li>
                    </ul>
                </li>
                
            </ul>
        </div> 
    </div>
</body>
</html>

